textview: Give attached children a different css name
authorMatthias Clasen <mclasen@redhat.com>
Sun, 10 May 2020 13:14:25 +0000 (09:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 10 May 2020 20:25:28 +0000 (16:25 -0400)
If we use "text" for the children that are attached to the
text view, they end up rendering the same background as the
main text content, causing that content to be covered up.

Fixes: #2729
gtk/gtktextviewchild.c

index a51ddfe3ac695c93537dcecd115b1eccdef5d494..1462f3ecbdc01f35374bca1920274ff46da06501 100644 (file)
@@ -326,7 +326,7 @@ gtk_text_view_child_constructed (GObject *object)
       break;
 
     case GTK_TEXT_WINDOW_TEXT:
-      gtk_css_node_set_name (css_node, g_quark_from_static_string ("text"));
+      gtk_css_node_set_name (css_node, g_quark_from_static_string ("child"));
       break;
 
     case GTK_TEXT_WINDOW_WIDGET: